import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:hook_rent/pages/home/tab_search/data_list.dart';
import 'package:hook_rent/widgets/app_bar.dart';
import 'package:hook_rent/widgets/room_list_item.dart';

class TabSearch extends StatefulWidget {
  const TabSearch({super.key});

  @override
  State<TabSearch> createState() => _TabSearchState();
}

class _TabSearchState extends State<TabSearch> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: buildAppBar(title: '搜索'),
      body: Column(
        children: [
          SizedBox(
            height: 40.h,
            child: const Text("filterBar"),
          ),
          Expanded(
            child: ListView(
              children:
                  dataList.map((item) => RoomListItemWidget(item)).toList(),
            ),
          ),
        ],
      ),
    );
  }
}
